package com.lagou.sqlSession;

import java.util.List;

/**
 * @author mcl
 * @date 2021/6/6 1:14 上午
 * @description
 */
public interface SqlSession {
    //查询所有
    public <E> List<E> selectList(String statementId, Object... params) throws Exception;
    //根据查询条件选一个
    public <T> T selectOne(String statementId, Object... params) throws Exception;

    boolean execute(String statementId, Object... params) throws Exception;

    // 为Dao接口生成代理实现类
    public <T> T getMapper(Class<?> mapperClass);
}
